package com.example.springboot.entity;

import lombok.Data;

@Data
public class Res<T> {
    private int code;
    private String msg;
    private T data;

    public Res<T> code(int code) {
        this.code = code;
        return this;
    }

    public Res<T> msg(String msg) {
        this.msg = msg;
        return this;
    }

    public Res<T> data(T data) {
        this.data = data;
        return this;
    }
}
